<template>
  <div>
    <div>这是主页！</div>
    <div class="modify" style="margin: 10px 0;">
      <el-input style="width: 50px" placeholder="请输入订单号" v-model="text" >
      </el-input>

      <el-button type="primary" @click="click">导出</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "Home.vue",
  created() {
    this.$emit("generateTab",this.plate,this.func)
  },
  data(){
    return {
      plate: "",
      func: "",
      text:0,
    }
  },
  methods:{
    click() {
      window.open("http://localhost:9090/scan/export?reservationId=" + this.text)
    }
  }

}
</script>

<style scoped>

</style>
